//To integrate Socket.io in your Fastify application you just need to register fastify-socket.io plugin.
//It will create a decorator called io.
const app = require('fastify')();
app.register(require('fastify-socket.io'));
app.io.on('connection', () => { /* … */ });
app.listen(3000);
